﻿using Day22EF.Data.Models;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day22EF.Data
{
    public class HeroDbContext : IdentityDbContext<User>
    {
        public HeroDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public DbSet<Power> Powers { get; set; }
        public DbSet<PowerType> PowerTypes { get; set; }
        public DbSet<Affiliation> Affiliations { get; set; }
        public DbSet<AffiliationUser> AffiliationUsers { get; set; }

        public static HeroDbContext Create()
        {
            return new HeroDbContext();
        }
    }
}
